<%=render(:partial=>"user_order")%>
<h1>ManageUser#consume_list</h1>
<p>Find me in app/views/manage_user/consume_list.html.erb</p>
<table>
  <tr>
    <th>User</th>
    <th>Shop</th>
    <th>Status</th>
    <th>Product sum price</th>
    <th>Transport</th>
    <th>Transport type</th>
    <th>Order price sum</th>
  </tr>

<% for order in @orders %>
  <tr>
    <td><%=h order.user_id %></td>
    <td><%=h order.shop_id %></td>
    <td><%=h order.status %></td>
    <td><%=h order.product_sum_price %></td>
    <td><%=h order.transport_id %></td>
    <td><%=h order.transport_type %></td>
    <td><%=h order.order_price_sum %></td>
    <td><%= link_to '查看',{:controller=>"manage_user",:action=>"order_show",:id=>order.id} %></td>
  </tr>
<% end %>
</table>